
let Plant = require("./plant.js");
let Factory = require("./factory.js");
class Apple extends Plant {
    constructor(name, flavour) {
        super(name)
        this.name = name;
        this.flavour = flavour;
    }
}
class AppleFactroy extends Factory {
    static create() {
        return new Apple("apple", "好吃的")
    }
}
module.export = AppleFactroy;